package org.javaboy.demo01.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * r2dbc webflux
 */
@RestController
public class HelloController {

    private static final Logger logger = LoggerFactory.getLogger(HelloController.class);

    public HelloController() {
        logger.debug("abc:HelloController");
        System.out.println("HelloController");
    }

    @GetMapping("/hello")
    public String hello() {
        for (int i = 0; i < 100000; i++) {
            logger.info("hello:" + i);
        }
        return "hello spring boot";
    }
}